package com.fredia.terp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext;
import org.springframework.jms.annotation.EnableJms;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * terp 入口文件
 * 
 * @author : wangyong
 * @since : 2017年6月16日
 * @version : v0.0.1
 */
@SpringBootApplication
@EnableTransactionManagement
@MapperScan(basePackages = "com.fredia.terp.mapper")
@EnableJms
@ServletComponentScan
public class TerpApplication {

	public static void main(String[] args) {

		ApplicationContext context = SpringApplication.run(TerpApplication.class, args);

		String[] beanNames = context.getBeanDefinitionNames();
		for (String beanName : beanNames) {
			System.out.println("BeanName: " + beanName);
		}
	}
}
